import 'package:event_bus_plus/event_bus_plus.dart';

/// @description: 订单相关
/// @author tangzhentao
/// @created at 21:47 2025/2/21

/// 订单取消或支付成功
class PayingOrderResult extends AppEvent {
  final int orderId;
  final bool success;

  const PayingOrderResult(this.orderId, this.success);

  @override
  List<Object?> get props => [orderId, success];
}

/// 删除订单
class DeleteOrder extends AppEvent {
  final int orderId;

  const DeleteOrder(this.orderId);

  @override
  List<Object?> get props => [orderId];
}

/// 已评价订单
class ReviewOrder extends AppEvent {
  final int orderId;

  const ReviewOrder(this.orderId);

  @override
  List<Object?> get props => [orderId];
}

/// 确认收货订单
class ConfirmOrder extends AppEvent {
  final int orderId;

  const ConfirmOrder(this.orderId);

  @override
  List<Object?> get props => [orderId];
}

/// 申请中订单
class ApplyingRefundOrder extends AppEvent {
  final int orderId;

  const ApplyingRefundOrder(this.orderId);

  @override
  List<Object?> get props => [orderId];
}

/// 已授权订单
class AuthorizationOrder extends AppEvent {
  final int orderId;

  const AuthorizationOrder(this.orderId);

  @override
  List<Object?> get props => [orderId];
}

/// 去发货订单
class ShipOrder extends AppEvent {
  final int orderId;

  const ShipOrder(this.orderId);

  @override
  List<Object?> get props => [orderId];
}